package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:20
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceMemberBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceMember workspaceMember;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceMember);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceMemberDAO.Id);
		
																																						
				
																
				
																
		mappedDaoFields.put("sysUserId",com.ourteam.workspace.dao.IWorkspaceMemberDAO.SysUserId);
		
																																		
				
																
				
																				
		mappedDaoFields.put("scmAccount",com.ourteam.workspace.dao.IWorkspaceMemberDAO.ScmAccount);
		
																														
				
																
				
																								
		mappedDaoFields.put("role",com.ourteam.workspace.dao.IWorkspaceMemberDAO.Role);
		
																										
				
																
				
																																								
		mappedDaoFields.put("lastActivityTime",com.ourteam.workspace.dao.IWorkspaceMemberDAO.LastActivityTime);
		
										
				
																
				
																												
		mappedDaoFields.put("lastChangeCodeLine",com.ourteam.workspace.dao.IWorkspaceMemberDAO.LastChangeCodeLine);
		
																						
				
																
				
																																
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceMemberDAO.Status);
		
																		
				
																
				
																																				
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceMemberDAO.Remarks);
		
														
				
																
				
																																										
				
						
		mappedDaoFields.put("userName",com.ourteam.workspace.dao.IWorkspaceMemberDAO.UserName);
												
				
																																												
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceMemberDAO.WorkspaceId);
		
						
				
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceMemberBean() {
		super();
	    		
		this.workspaceMember = new com.ourteam.workspace.dao.WorkspaceMember();
                
	}
	
		
	public WorkspaceMemberBean(com.ourteam.workspace.dao.WorkspaceMember workspaceMember) {
		super();
	
		this.workspaceMember = workspaceMember;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceMember convertToWorkspaceMember(){
		return this.workspaceMember;
	}
	
	public com.ourteam.workspace.dao.WorkspaceMember convertTo(){
		return this.workspaceMember;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceMember.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceMember.setId(id);
	}
		
																			
			
									
		
		
					
			
		
	/**
	 * Get sysUserId
	 * 
	 * @return long
	 */
	public long getSysUserId(){
		return (long) this.workspaceMember.getSysUserId();
	}
	
	/**
	 * Set sysUserId
	 * 
	 * @parameter long
	 */
	public void setSysUserId(long sysUserId){
		
		this.workspaceMember.setSysUserId(sysUserId);
	}
		
																	
			
									
		
		
							
			
		
	/**
	 * Get scmAccount
	 * 
	 * @return String
	 */
	public String getScmAccount(){
		return (String) this.workspaceMember.getScmAccount();
	}
	
	/**
	 * Set scmAccount
	 * 
	 * @parameter String
	 */
	public void setScmAccount(String scmAccount){
		
		this.workspaceMember.setScmAccount(scmAccount);
	}
		
															
			
									
		
		
									
			
		
	/**
	 * Get role
	 * 
	 * @return String
	 */
	public String getRole(){
		return (String) this.workspaceMember.getRole();
	}
	
	/**
	 * Set role
	 * 
	 * @parameter String
	 */
	public void setRole(String role){
		
		this.workspaceMember.setRole(role);
	}
		
													
			
									
		
		
																	
			
		
	/**
	 * Get lastActivityTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getLastActivityTime(){
		return (java.util.Date) this.workspaceMember.getLastActivityTime();
	}
	
	/**
	 * Set lastActivityTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setLastActivityTime(java.util.Date lastActivityTime){
		
		this.workspaceMember.setLastActivityTime(lastActivityTime);
	}
		
					
			
									
		
		
											
			
		
	/**
	 * Get lastChangeCodeLine
	 * 
	 * @return int
	 */
	public int getLastChangeCodeLine(){
		return (int) this.workspaceMember.getLastChangeCodeLine();
	}
	
	/**
	 * Set lastChangeCodeLine
	 * 
	 * @parameter int
	 */
	public void setLastChangeCodeLine(int lastChangeCodeLine){
		
		this.workspaceMember.setLastChangeCodeLine(lastChangeCodeLine);
	}
		
											
			
									
		
		
													
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceMember.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceMember.setStatus(status);
	}
		
									
			
									
		
		
															
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceMember.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceMember.setRemarks(remarks);
	}
		
							
			
									
		
		
																				
			
			
			
		
	/**
	 * Get userName
	 * 
	 * @return String
	 */
	public String getUserName(){
		
		return (String) this.workspaceMember.getUserName();
			
	}
	
							
		
		
																			
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		return (long) this.workspaceMember.getWorkspaceId();
	}
	
	/**
	 * Set workspaceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceId(long workspaceId){
		
		this.workspaceMember.setWorkspaceId(workspaceId);
	}
		
			
			
									
		
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceMemberBean) == false) {
            return false;
        } // end if

        WorkspaceMemberBean other = (WorkspaceMemberBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceMember tempWorkspaceMember = other.convertToWorkspaceMember();
        
        if(tempWorkspaceMember == null || this.workspaceMember == null){
        	isEqual = false;
        }
        else if(tempWorkspaceMember == this.workspaceMember || tempWorkspaceMember.equals(this.workspaceMember) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceMemberBean[] toArray(com.ourteam.workspace.dao.WorkspaceMember[] aWorkspaceMembers){
		
		return toArray(aWorkspaceMembers,null);
	}
	
	public static WorkspaceMemberBean[] toArray(com.ourteam.workspace.dao.WorkspaceMember[] aWorkspaceMembers , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceMembers)){
		 	return new WorkspaceMemberBean[0];
		 }
		 
		 int length = aWorkspaceMembers.length;
		 
		 WorkspaceMemberBean[] beans = new WorkspaceMemberBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceMemberBean(aWorkspaceMembers[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceMembers[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}